<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo __('Mỹ Phẩm 100% Thiên Nhiên: '); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php echo $this->Html->script('jquery-1.9.0.min'); ?>
	<?php echo $this->Html->script('jquery.watermark.min'); ?>
	<?php echo $this->Html->script('jquery.form'); ?>
	<?php echo $this->Html->script('frontend'); ?>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('roses/layout');
		echo $this->Html->css('frontend');
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body>
	<?php if(isset($category)){ ?>
		<div class="seo-content"> 
			<h1><?php echo $category['Category']['name'] ?></h1>
			<p><?php echo $category['Category']['description'] ?></p>
		</div>
	<?php } ?>

	<div id="wrapper">
		<div id="wrapper-content">
			<div id="content">
				<?php echo $this->fetch('content'); ?>
			</div><!-- end #content -->
		</div><!-- end wrapper content -->
		<div id="wrapper-header">
			<div id="header">
				<div class="div-logo">
					<?php echo $this->Html->link($this->Html->image('roses/logo.png', array('alt' => __('Nuoc Hoa Hong Shop'), 'border' => '0')),
																				'/',array('escape' => false));?>
				</div>
				<?php echo $this->fetch("menu"); ?>
			</div>
		</div> <!-- end #header -->
		<div id="wrapper-footer">
			<div id="footer">
				<div class="footer-info">
					<h3>Mỹ Phẩm Hoa Hồng</h3>
					<p>Được tinh lọc từ những tinh chất thiên nhiên, không sử dụng hóa chất. Mỹ Phẩm Hoa Hồng vinh dự đem đến cho các chị em những sản phẩm chất lượng, uy tính, giá phải chăng. Gọi ngay 093.559.4667 để được tư vấn miễn phí</p>
				</div>
				<?php if(isset($infors)){ ?>
				<div class="footer-info information">
					<h3><?php echo $infoCategory['Category']['name'] ?></h3>
					<ul>
					<?php foreach($infors as $i => $info){ ?>
						<?php $url = $this->Posts->getSEOLink($info); ?>
						<li><?php echo $this->Html->link($info['Post']['title'], $url, array('escape' => false)) ?></li>
					<?php } ?>
					</ul>
				</div>
				<?php } ?>
				<div class="footer-info follow-us">
					<h3>Tìm Chúng Tôi</h3>
					<ul>
						<li><a href="http://www.facebook.com/pages/M%E1%BB%B9-Ph%E1%BA%A9m-100-Thi%C3%AAn-NHi%C3%AAn/371361582960569" target="_blank" class="facebook">Facebook</a></li>
						<li><a href="#" class="support">Support</a></li>
						<li><a href="http://twitter.com/fwtemplates" target="_blank" class="twitter">Twitter</a></li>
						<li><a href="http://www.flickr.com/freewebsitetemplates/" target="_blank" class="flicker">Flicker</a></li>
					</ul>
					<span>093-559-4667</span>
				</div>
			</div> <!-- end footer -->
			<p class="footnote">Bản quyền thuộc về myphamhoahong.com 2013. Thiết kể bởi FIOSoft Group(0909027290)</p>
		</div> <!-- end wrapper-footer -->
		
		<div id="cart" style="display:<?php echo $this->Session->check('Cart.countProduct') ? 'block' : 'none' ?>;">
		<?php if($this->Session->check('Cart.countProduct')){?>
			<?php echo $this->element('Frontend/cart') ?>
		<?php } ?>
		</div>
	</div> <!-- end #wrapper -->
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
